number = int(input("请输入一个整数:"))
sum = 0
for i in range(number+1):
    sum += i
print("总和为:",sum)
